//
//  ByeCodeCollectionViewCell.m
//  PlayerWorld
//
//  Created by 汪的一声就哭了！ on 16/6/21.
//  Copyright © 2016年 刘成. All rights reserved.
//

#import "ByeCodeCollectionViewCell.h"

@implementation ByeCodeCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView];
        
        self.label = [[UILabel alloc] init];
        [self.imageView addSubview:self.label];
        self.label.textAlignment = NSTextAlignmentCenter;
        self.label.textColor = [UIColor colorWithRed:64.0/255.0 green:120.0/255.0 blue:179.0/255.0 alpha:1];
        self.label.font = [UIFont systemFontOfSize:19];
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.imageView.frame = layoutAttributes.bounds;
    self.label.frame = layoutAttributes.bounds;
}
@end
